package org.geektime.task.sboauth.model;

import java.io.Serializable;

/**
 * 2021年04月21日 22:36:04
 */
public class OAuthCallback implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 访问AuthorizeUrl后回调时带的参数code
     */
    private String code;


    /**
     * 访问AuthorizeUrl后回调时带的参数state，用于和请求AuthorizeUrl前的state比较，防止CSRF攻击
     */
    private String state;

    public OAuthCallback(String code, String state) {
        this.code = code;
        this.state = state;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
